package SynchronizedStudy;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-27
 * Time: 19:56
 */
public class TimeIng {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SS");
    String date = sdf.format(new Date());
    long num = (long) (Math.random() * (999L - 100L)) + 100L;

    public String time(){
        return date + num;
    }
}
